<template>
  <div>demo</div>
</template>

<script setup lang="ts">
import { ref, inject, onMounted, useAttrs } from "vue";
const eventBus: any = inject("eventBus");
const attrs = useAttrs();
console.log(attrs, "66333");

onMounted(() => {
  eventBus.emit("wwww", 120);
});
</script>

<style scoped></style>
